<div class="action-dialog-model-fixed-body">
   <div class="detaiTab  detaiTab1 detailsBox ">
   <#assign custType=loanapply.wfType />
   
    <div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     </h3>
		<div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div>	
      <!-- 贷款要素  end -->
     </div>
    </div>
		
		<#if expand.payName!=null> 
		<!-- 收取保证金、管理费和风险补偿金缴纳信息 begin-->
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>收取保证金、管理费和风险补偿金信息
			</h3>
			<div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg">缴费基数:</td>
						<td align="left" ><@numberFormat
							value="${loanapply.eaMount}"/></td>
						<td align="right" class="bg">付款人:</td>
						<td align="left">${expand.payName}</td>
						<td align="right" class="bg">付款时间:</td>
						<td align="left"><@date value="${expand.submitDate}"
							id="submitDate" name ="submitDate" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">保证金费率:</td>
						<td align="left" width="15%"><@select id="desposit"
							dataSouceType="O2ODEPOSITFEERATE" name="depositrate"
							value="${expand.depositrate}" renderonly="true"/></td>
						<td align="right" class="bg" width="18%">管理费费率:</td>
						<td align="left" width="15%"><@select id="manger"
							dataSouceType="O2OMANAGEFEERATE" name="managefeerate"
							value="${expand.managefeerate}" renderonly="true"/></td>
						<td align="right" class="bg" width="18%">风险补偿金费率:</td>
						<td align="left" width="15%">${expand.risk*100}%</td>
					</tr>

					<tr>
						<td align="right" class="bg">应收保证金:</td>
						<td align="left"> 
						<input type="text" class="bn" value="<@numberFormat value='${expand.recDeposite}'/>" readonly="readonly" />
						</td>
						<td align="right" class="bg">应收管理费:</td>
						<td align="left"><input class="bn inputNum" type="text"
							value="<@numberFormat value='${expand.recManger}'/>"
							readonly="readonly" />
							</td>
						<td align="right" class="bg">应收补偿金:</td>
						<td align="left"><input class="bn inputNum" type="text"
							value="<@numberFormat value='${expand.recRisk}'/>"
							readonly="readonly" />
							</td>
					</tr>

					<tr>
						<td align="right" class="bg">已收保证金:</td>
						<td align="left"><input
							class="bn inputNum" type="text"
							value="<@numberFormat value='${expand.redDeposite}'/>"
							readonly="readonly" />
						</td>
						<td align="right" class="bg">已收管理费:</td>
						<td align="left"><input class="bn inputNum" type="text"
							value="<@numberFormat value='${expand.redManger}'/>"
							readonly="readonly" />
						</td>
						<td align="right" class="bg">已收补偿金:</td>
						<td align="left"><input
							class="bn inputNum" type="text"
							value="<@numberFormat value='${expand.redRisk}'/>"
							readonly="readonly" />
						</td>
					</tr>

					<tr>
						<td align="right" class="bg" title="本次缴纳保证金=本次保证金打款金额+本次保证金划拨金额"><span class="wenhaoIco"></span>本次缴纳保证金:</td>
						<td align="left">
							<#if (expand.paidDeposite)??> 
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.paidDeposite}'/>" readonly="readonly" /> 
							<#else>
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.recDeposite}'/>" readonly="readonly" /> 
							</#if>
						</td>
						<td align="right" class="bg">本次缴纳管理费:</td>
						<td align="left">
							<#if (expand.paidManger)??> 
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.paidManger}'/>" readonly="readonly" /> 
							<#else>
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.recManger}'/>" readonly="readonly" /> 
							</#if>
							</td>
						<td align="right" class="bg">本次缴纳补偿金:</td>
						<td align="left">
							<#if (expand.paidRisk)??> 
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.paidRisk}'/>" readonly="readonly" /> 
							<#else>
							<input class="bn inputNum" type="text" value="<@numberFormat value='${expand.recRisk}'/>" readonly="readonly" /> 
							</#if>
							</td>
					</tr>

					<tr>
						<td align="right" class="bg"><span style="color: red;"></span>本次保证金打款金额:</td>
						<td align="left">
							<#if (expand.paidDeposite)??> 
								${expand.paidDeposite}
							<#else>
								${expand.recDeposite}
							</#if>
						</td>
						<td align="right" class="bg"><span style="color: red;"></span>本次保证金划拨金额:</td>
						<td align="left">${expand.transferDeposit}</td>
						<td align="right" class="bg"><span style="color: red;"></span>保证金划拨贷款单号:</td>
						<td align="left">${expand.transferNum}</td>
					</tr>
					<tr>
						<td align="right" class="bg">付款备注信息:</td>
						<td colspan="3">${expand.payRemark}</td>
					</tr>
				</tbody>
			</table>
			</div>
		</div>
		<!-- 收取保证金、管理费和风险补偿金缴纳信息 end -->
		<!-- 附件信息 begin -->
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>上传凭证
			</h3>
			<div><@pagination
				paginationInfo="paginationInfo"/></div>
		</div>
		<!-- 附件信息 end -->
		</#if>
		
		<#if expand.payDate!=null> 
		<!-- 实际收款信息   begin -->
		<div class="openBox">
			<h3 class="mt20">
				<i class="jtIco"></i>实际收款信息
			</h3>
			<div>
			<table width="100%" class="b_t" border="0" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td align="right" class="bg" width="18%">本次保证金打款金额：</td>
					<td>
					<#if (expand.receiveDeposit)??> 
					<input class="tabInp bn" type="text" id="deposite1"
						value="${expand.receiveDeposit}" readonly="readonly"/>
						<#else> 
						<input type="text" class="tabInp bn"
						value="${expand.recDeposite}" readonly="readonly"/>
						</#if>
					</td>
					<td align="right" class="bg" width="18%">本次保证金到款金额：</td>
					<td>
						<#if (expand.receiveDeposit)??> 
						<input class="tabInp bn" type="text" id="deposite2"
						value="${expand.receiveDeposit}" readonly="readonly"/>
						<#else> 
						<input type="text" class="tabInp bn" id="deposite2"
						value="${expand.recDeposite}" readonly="readonly"/>
						</#if>
						</td>
					<td align="right" class="bg" width="18%" title="本次缴纳保证金=本次保证金打款金额+本次保证金划拨金额"><span class="wenhaoIco"></span>本次缴纳保证金：</td>
					<td>${expand.recDeposite}</td>
				</tr>
				<tr>
					<td align="right" class="bg">本次管理费打款金额：</td>
					<td>
					<#if (expand.paidManger)??>
					<input type="text" id="manager1"
						 class="tabInp bn" size="40"
						value="${expand.paidManger}" readonly="readonly"/>
					<#else> 
					<input type="text" id="manager1"
						class="tabInp bn" size="40"
						value="${expand.recManger}"  readonly="readonly"/>
					</#if>
						</td>
					<td align="right" class="bg">本次管理费到款金额：</td>
					<td>
						<#if (expand.paidManger)??>
					<input type="text" id="manager2"
						 class="tabInp bn" size="40"
						value="${expand.paidManger}" readonly="readonly"/>
					<#else> 
					<input type="text" id="manager2"
						class="tabInp bn" size="40"
						value="${expand.recManger}"  readonly="readonly"/>
					</#if>
					</td>
					<td align="right" class="bg">本次保证金划拨金额：</td>
					<td>
						${expand.transferDeposit}
					</td>
				</tr>
				<tr>
					<td align="right" class="bg">本次风险补偿金打款金额：</td>
					<td>
					<#if (expand.paidRisk)??>
				<input type="text" id="risk1" 
						class="tabInp bn" size="40" value="${expand.paidRisk}" readonly="readonly"/>
					<#else> 
					<input type="text" id="risk1"
						 class="tabInp bn" size="40"
						value="${expand.recRisk}" readonly="readonly"/>
					</#if>
					</td>
					<td align="right" class="bg">本次风险补偿金到款金额：</td>
					<td>	
					<#if (expand.paidRisk)??>
					<input type="text" id="risk2" 
						class="tabInp bn" size="40" value="${expand.paidRisk}" readonly="readonly"/>
					<#else> 
					<input type="text" id="risk2"
						 class="tabInp bn" size="40"
						value="${expand.recRisk}" readonly="readonly"/>
					</#if>
					</td>
					<td align="right" class="bg">保证金划拨贷款单号：</td>
					<td><a href="/oldsytem?billCode=${expand.transferNum}" target="_blank">
					${loanapplyExpand.transferNum}
					</a></td>
				</tr>
				<tr>
					<td align="right" class="bg">本次打款合计金额：</td>
					<td><input type="text" class="bn" id="count1"
						readonly="true"></td>
					<td align="right" class="bg">本次到款合计金额：</td>
					<td><input type="text" 
						class="bn tabInp inputNum" id="count2" size="40" readonly="readonly"/></td>
						<td align="right" class="bg">本次到账日期：</td>
					<td><@date value="${expand.payDate}"
						id="payDate" name = "payDate" renderonly="true"/></td>
				</tr>
			</tbody>
		</table>
		</div>
		</div>
		<!--实际收款信息     end-->
		</#if>
		
		<!-- 夫妻双方历史收退费情况记录  end -->
		<div class="openBox">
		    <h3 class="mt20"><i class="jtIco"></i>夫妻双方历史收退费情况
		    </h3>
	       	<div class="dataBable">
	            <div id="o2o_DBresult" class="action-ajax-load" data-url="/rbackfee/o2oDBbackfee?loanapplyNo=${loanapply.loanapplyNo}&loanId=${loanapply.loanId}"></div>
			 </div>    
		</div>
		<!-- 夫妻双方历史收退费情况记录  end -->
		
  		<!--审核历史-->
		<div class="action-ajax-load" data-url="<@url value='${agreeUrl}' />">审核历史加载中。。。</div>
		<!--待办才显示审核栏-->
		<#if approvalStatus == 'UNDO'>
			<div class="action-ajax-load" data-url="<@url value='${approvalUrl}' />"></div>
		</#if>
		<!--审核历史-->
</div>
</div>